package com.weirdor.wxchat.module.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 自定义菜单表
 * </p>
 *
 * @author weirdor
 * @since 2017-12-01
 */
@TableName("qywx_menu")
public class QywxMenu extends Model<QywxMenu> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
	private String id;
    /**
     * 应用主键ID
     */
	@TableField("agent_id")
	private String agentId;
    /**
     * 菜单标题
     */
	@TableField("menu_name")
	private String menuName;
    /**
     * 菜单类型
     */
	@TableField("menu_type")
	private String menuType;
    /**
     * 菜单KEY
     */
	@TableField("menu_key")
	private String menuKey;
    /**
     * 菜单位置
     */
	private String orders;
    /**
     * 响应消息类型
     */
	@TableField("msg_type")
	private String msgType;
    /**
     * 关联素材ID
     */
	@TableField("template_id")
	private String templateId;
    /**
     * 网页链接
     */
	private String url;
    /**
     * 父ID
     */
	@TableField("father_id")
	private String fatherId;
    /**
     * 创建人名称
     */
	@TableField("create_name")
	private String createName;
    /**
     * 创建人登录名称
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建日期
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 更新人名称
     */
	@TableField("update_name")
	private String updateName;
    /**
     * 更新人登录名称
     */
	@TableField("update_by")
	private String updateBy;
    /**
     * 更新日期
     */
	@TableField("update_date")
	private Date updateDate;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAgentId() {
		return agentId;
	}

	public void setAgentId(String agentId) {
		this.agentId = agentId;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getMenuType() {
		return menuType;
	}

	public void setMenuType(String menuType) {
		this.menuType = menuType;
	}

	public String getMenuKey() {
		return menuKey;
	}

	public void setMenuKey(String menuKey) {
		this.menuKey = menuKey;
	}

	public String getOrders() {
		return orders;
	}

	public void setOrders(String orders) {
		this.orders = orders;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFatherId() {
		return fatherId;
	}

	public void setFatherId(String fatherId) {
		this.fatherId = fatherId;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "QywxMenu{" +
			"id=" + id +
			", agentId=" + agentId +
			", menuName=" + menuName +
			", menuType=" + menuType +
			", menuKey=" + menuKey +
			", orders=" + orders +
			", msgType=" + msgType +
			", templateId=" + templateId +
			", url=" + url +
			", fatherId=" + fatherId +
			", createName=" + createName +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateName=" + updateName +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			"}";
	}
}
